﻿# -*- coding: utf-8 -*-

from RestServer import app
from DAC.Dac import Dac
from DAC.Func import Func
from DAC.RequestParams import RequestParams
import json

@app.route("/emr/atom/<json_string_encoding>", methods=["GET"])
def get__emr_atom_(json_string_encoding):
	ps = RequestParams(json_string_encoding)
	orgcode =ps.input[0]["orgcode"]
	sql = 'select *  from emr_atom  where orgcode=\'' + orgcode + '\' '
	return Dac.get_query(sql)
